import requests

url = 'https://live.kuaishou.com/live_api/liveroom/sendComment'

data = {
    'color': 'null',
    'content': '66666',
    'liveStreamId': 'GyaFHYfXxV4'
}

headers = {
    'Accept': 'application/json, text/plain, */*',
    'Accept-Encoding': 'gzip, deflate, br, zstd',
    'Accept-Language': 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6',
    'Connection': 'keep-alive',
    'Content-Length': '59',
    'Content-Type': 'application/json',
    'Cookie': 'did=web_ed5e674199bdce35c3d996a073d039f8; didv=1720444485755; clientid=3; did=web_ed5e674199bdce35c3d996a073d039f8; client_key=65890b29; kpn=GAME_ZONE; kuaishou.live.web_st=ChRrdWFpc2hvdS5saXZlLndlYi5zdBKgASxSbPcfs-bd77gdG41vDbveDlr8FWlQ_AAnPOvD8EYzXihjgN5v7HofuOTdxQirnwdA-pVagH7kaVk0UPmpVJT7i0sQYP8atz4TTdcDqfxbMgTXy8vvkVxiw1Gt40zLhIImCM8p7lDQilXBqES7y3CL4HpftvDBDq-8Fv1NR9Z9m0DJHz-0e6h4pS5Sh-ZE97ptcrHirUn56-HJ3O_nF_IaEk2hY_LIikBot7IUVtJ3ydB6KCIg8JOVPSWDtQIMEDrPaOucdOfiW0-yfEsTOvsb93P9V2AoBTAB; kuaishou.live.web_ph=753603c67d2f5e10ff35dc9d0cec8616cf1f; userId=1873124245; kuaishou.live.bfb1s=9b8f70844293bed778aade6e0a8f9942',
    'Host': 'live.kuaishou.com',
    'Origin': 'https://live.kuaishou.com',
    'Referer': 'https://live.kuaishou.com/u/3x3aqkveu5qe6mk',
    'Sec-Fetch-Dest': 'empty',
    'Sec-Fetch-Mode': 'cors',
    'Sec-Fetch-Site': 'same-origin'
}

response = requests.post(url=url, data=data,headers=headers)

print(response.status_code)